#ifndef REPORTERROR_H_
#define REPORTERROR_H_

#ifdef WIN32
#include <windows.h>
#endif //WIN32
#include <string>

static void ReportError(const std::string& text)
{
#ifdef WIN32
#ifdef _DEBUG
	MessageBoxA(0, text.c_str(),"Error: " , MB_ICONSTOP);
#ifdef NDEBUG
    return;
#else

#endif //_DEBUG
#endif //NDEBUG
#else
#ifdef _DEBUG
    std::cout << "Error";
#ifdef NDEBUG
    return;

#endif //_DEBUG
#endif //NDEBUG
#endif //WIN32

}

#endif //REPORTERROR_H_